﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using ComponentFactory.Krypton.Toolkit;
using System.Windows.Forms;

namespace MeTalker.Aide.Forms
{
    internal class MeMessageBox
    {
        public static DialogResult ShowQuestion(string text)
        {
            return KryptonMessageBox.Show(text, "系统提示", MessageBoxButtons.YesNo, MessageBoxIcon.Question);
        }
        public static DialogResult ShowInformation(string text)
        {
            return KryptonMessageBox.Show(text, "系统提示", MessageBoxButtons.OK, MessageBoxIcon.Information);
        }
        public static DialogResult ShowError(string text)
        {
            return KryptonMessageBox.Show(text, "错误提示", MessageBoxButtons.OK, MessageBoxIcon.Error);
        }
        public static DialogResult ShowWarning(string text)
        {
            return KryptonMessageBox.Show(text, "警告提示", MessageBoxButtons.OK, MessageBoxIcon.Warning);
        }
        //public static DialogResult ShowOK(string text)
        //{
        //    return KryptonMessageBox.Show(text, "系统提示", MessageBoxButtons.OK, MessageBoxIcon.None);
        //}
    }
}
